package com.oo.packaging_2.bankUser;

import java.util.Scanner;

/**
 * BankUserTest--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-19 11:51
 **/
public class BankUserTest {

    public static void main(String[] args) {
        BankUser bankUser = new BankUser("王四", "12345", "110", "123123", 2000);
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入账号：");
        String id = sc.nextLine();
        System.out.println("请输入存款金额：");
        double money = sc.nextDouble();
        bankUser.saving(id, money);
        System.out.println("-----------------------");

        System.out.println("请输入取款金额");
        money = sc.nextDouble();
        bankUser.getting(id, money);
    }
}
